<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >

<html>
  <head>
    <base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>货物</title>
	<link rel="stylesheet" type="text/css" href="style/common.css">
	<link rel="stylesheet" type="text/css" href="style/${windowStyle}/easyui/easyui.css">
	<link rel="stylesheet" type="text/css" href="style/${windowStyle}/icon.css">
	<link rel="stylesheet" type="text/css" href="style/${windowStyle}/common.css">
	
	<link rel="stylesheet" type="text/css" href="style/${windowStyle}/main.css">
	<script type="text/javascript" src="js/common/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="js/common/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="js/common/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="js/common/goodsTypeCombogrib.js"></script>
	<script type="text/javascript" src="js/common/unitCombogrib.js"></script>
	<script type="text/javascript" src="js/dict/goods.js"></script>
</head>
<body>
	<div class="page-hd">
          <div class="page-hd-title">
         	货物
          </div>          
		  <div class="page-hd-title-rcaption"></div>
          <div id="toolbar">
          	 <div id="search" class="f-l">
             		<input id="search-input" class="easyui-searchbox" searcher="lookup" prompt="新输入关键词" menu="#search-item"></input>
                    <div id="search-item" style="width:120px">
                        <div name="all" iconCls="icon-ok">所有</div>
                        <div name="goodsCode" iconCls="icon-ok">编号</div>
                        <div name="goodsName" iconCls="icon-ok">名称</div>
                    </div>
             </div>
             <div id="toolbar-btn" class="f-l">
                     <a href="#" class="easyui-linkbutton" iconCls="icon-add" id="add">新增</a>
                     <a href="#" class="easyui-linkbutton" iconCls="icon-remove" id="detele">删除</a>
             </div>
          </div>
    </div>
	
    <div class="page-bd">
        	<table id="goodsTable">
   			</table>
   			<input type="hidden" id="searchInput">  
   </div>
   
   <div id="addGoodsDialog" icon="icon-save" style="padding:5px;width:550px;height:300px;" modal="true" closed="true" title="编辑站点">
		<form id="addGoodsForm" method="post" style="pardding:3px">
			<input type="hidden" name="goodsID" id="goodsID"/>
			<table width="100%">
			  <tr>
			    <td>货物名：</td>
			    <td><input class="easyui-validatebox" type="text" name="goodsName" required="true"></input></td>
			  </tr>
			  <tr>
			    <td>货物编号：</td>
			    <td><input class="easyui-validatebox" type="text" name="goodsCode" required="true"></input></td>
			  </tr>
			  <tr>
			    <td>货物类型：</td>
			    <td>
			    	<input type="hidden" name="goodsTypeID" id="goodsTypeID"/>
			        <input type="text" name="goodsType" id="goodsType" required="true"/>
			    </td>
			  </tr>
			  <tr>
			    <td>是否危险品：</td>
			    <td>
			        <input type="checkbox" name="isDangerous" id="isDangerous" required="true" value="true"/>
			    </td>
			  </tr>
			  <tr>
			    <td>默认单位：</td>
			    <td>
			    	<input type="hidden" name="unitID" id="unitID"/>
			        <input type="text" name="unit" id="unit" required="true"/>
			    </td>
			  </tr>
			  <tr>
			    <td>备注：</td>
			    <td><input  type="text" name="note"></input></td>
			  </tr>
			</table>
		</form>
	</div>
</body>

<script type="text/javascript">
  var js = '<%=basePath %>';
</script>
</html>
